body {
  width: 350px;
  height: 500px;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  color: #333;
}

.container {
  padding: 16px;
}

/* 登录部分 */
.login-section {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  margin-bottom: 16px;
}

.login-button {
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  padding: 8px 0;
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.avatar-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #eee;
}

/* 章节样式 */
.section {
  margin-bottom: 24px;
}

h3 {
  font-size: 16px;
  font-weight: bold;
  margin: 0 0 12px 0;
}

/* 设置项样式 */
.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.setting-label {
  font-size: 14px;
}

.setting-value {
  color: #666;
  font-size: 14px;
}

/* 开关按钮样式 */
.setting-toggle {
  position: relative;
}

.toggle-input {
  display: none;
}

.toggle-label {
  display: block;
  width: 40px;
  height: 20px;
  background: #ccc;
  border-radius: 10px;
  position: relative;
  cursor: pointer;
  transition: background 0.3s;
}

.toggle-label:before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: left 0.3s;
}

.toggle-input:checked + .toggle-label {
  background: #4A90E2;
}

.toggle-input:checked + .toggle-label:before {
  left: 22px;
}

/* 下拉选择框样式 */
.window-style {
  padding: 4px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
  font-size: 14px;
}

/* 访问按钮样式 */
.visit-button {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

.visit-yinliai {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 8px 16px;
  cursor: pointer;
  width: 100%;
  font-size: 14px;
}

.home-icon {
  width: 16px;
  height: 16px;
}

/* 悬停效果 */
.visit-yinliai:hover {
  background: #f5f5f5;
}

.login-button:hover {
  background: #f5f5f5;
}

/* 登录弹窗样式 */
.login-dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.login-dialog {
  background: white;
  border-radius: 12px;
  width: 360px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.login-dialog-header {
  padding: 16px 20px;
  border-bottom: 1px solid #E5E7EB;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.login-dialog-header h3 {
  margin: 0;
  font-size: 16px;
  color: #333;
}

.login-dialog-close {
  cursor: pointer;
  font-size: 20px;
  color: #999;
  padding: 4px;
}

.login-dialog-content {
  padding: 20px;
}

.input-group {
  margin-bottom: 16px;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-size: 14px;
}

.input-group input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-size: 14px;
  box-sizing: border-box;
}

.input-group input:focus {
  outline: none;
  border-color: #2563EB;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.login-error {
  color: #DC2626;
  font-size: 13px;
  margin-bottom: 16px;
  padding: 8px 12px;
  background: #FEE2E2;
  border-radius: 6px;
}

.login-submit-button {
  width: 100%;
  padding: 12px;
  background: #2563EB;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.login-submit-button:hover {
  background: #1D4ED8;
}

.login-submit-button:disabled {
  background: #93C5FD;
  cursor: not-allowed;
}